
<form action="/booking/search_room/" method="post">{% csrf_token %}

 <select name=select >
    {% for Hotel in HotelNmae %}
       <!-- <li><a href="/booking/search_room/{{ Hotel.id }}">{{ Hotel.name }}</a></li>-->
      
              <option value="{{ Hotel.id }}">{{ Hotel.name }}</option>


    {% endfor %}
  </select>
<br>
chkin:<input type="Date" name="chkin">
<br>
chkout:<input type="Date" name="chkout">
<br>
<input type="submit" name="search" value ="search">   
</form>
